$(document).ready(function() {
	
	 tinyMCE.init({
	        mode: "textareas",
	        theme: "advanced",
	        language : "en",
	        plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen, preview,noneditable,visualchars,nonbreaking,template,wordcount,advlist, media",
	        theme_advanced_buttons1 : "bold,italic,underline,|,cut,copy,paste,|, image, media",
		    theme_advanced_buttons2 : "",
		    theme_advanced_buttons3 : "",      
		    theme_advanced_toolbar_location : "top",
		    theme_advanced_toolbar_align : "left",
		    theme_advanced_statusbar_location : "bottom",
		    theme_advanced_resizing : false
	});
	
});

function limpiarForm(){
//	jQuery("#comentario").val('');
}

function copiarComentario(){
	if (tinyMCE.get('textoRich')){
		jQuery("#texto").val(tinyMCE.get('textoRich').getContent());
	}
}